package com.lotustong.im4d.ipmsg.swt;

import java.io.FileOutputStream;
import java.io.OutputStream;

/**
 *  
 *  
 * 
 * @author takezoe
 */
public class Logger {
    
	/**  */
	private static final String LOG_FILE = "message.log";
	
    /**
     * 
     * 
     * @param message  
     */
    public synchronized static void writeLog(String message){
    	try {
    		OutputStream out = new FileOutputStream(LOG_FILE,true);
   			out.write(message.getBytes());
   			out.flush();
   			out.close();
    	} catch(Exception ex){
    		ex.printStackTrace();
    	}
    }
}
